<?php
/**
 * 竞彩表
 */
namespace app\sports\jc\model;

use think\Db;
use think\Model;

class JcModel extends Model
{

    private $database = 'sports_database';

    /*
     * 根据接口返回的id,查询相应的数据
     *
     */
    public function QueryIn(array $array)
    {
        return Db::database($this->database)->table('foot_ball_jc')->where('nami_id','in',$array)->select();
    }

    /*
     * 批量插入数据
     */
    public function InsertJcAll(array $array)
    {
        return Db::database($this->database)->table('foot_ball_jc')->strict()->insertAll($array);
    }

    /*
     * 更新竞彩数据数据
     */
    public function UpdateJc($id,$array){
        return Db::database($this->database)->table('foot_ball_jc')->where('nami_id',$id)->update($array);
    }


}